﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using V = Science.Mathematics.VectorCalculus;

namespace VectorCalculus5Ed.Chapter1.Section3
{
    public class Example11
    {
        public Example11()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
            V.Point p = new V.Point(3);
            p[0] = 1.0;
            p[1] = 1.0;
            p[2] = 1.0;

            V.Point r = new V.Point(3);
            r[0] = 2.0;
            r[1] = 0.0;
            r[2] = 0.0;

            V.Point q = new V.Point(3);
            q[0] = 1.0;
            q[1] = 1.0;
            q[2] = 0.0;

            V.Plane pl = new V.Plane(p, q, r);
            pl.Parameter1 = 3.0;
            pl.Parameter2 = 7.0;

            V.Vector v = pl.GetVectorOnPlane();

            result += v[0].ToString() + "   " +
                v[1].ToString() + "   " + v[2].ToString() + "\r\n";
         }
    }
}

// 8   -6   -9